package com.itcast.demoone.kotlin

// 文件的顶部
const val PI = 3.14
const val VERSION = "1.0.0"
const val AUTHOR = "叶 Justin"
const val COMPANY = "itcast"

fun main() {
    demo01()
}

fun demo01(){
    // 1. 定义常量
    val num1 = 100
    // num1 = 102

    // 2. 定义变量
    var num2 = 200
    num2 = 202
    println("$num1 $num2")

    // 3. 默认有类型推导
    var num3 = 300
    var userName = "叶建华"
    println("姓名:$userName, 年龄: ${num3/10}")

    println("$PI $VERSION $AUTHOR $COMPANY")
}